package cn.yunhe.entity;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Getter
@Component
public class MainFrame implements Serializable {

    private String modelType;

    public void mainInfo() {
        System.out.println("主机型号:" + modelType);
    }
    @Value(value = "微星")
    public void setModelType(String modelType) {
        this.modelType = modelType;
    }
}
